<?php

class Family extends MY_Controller {


    function index() {
        $this->layout->setLayout('theme1');
        $this->layout->css = array('myPage');
        $this->load->library('FormWidget2');
        $this->formwidget2->load('register'); // Relative to APPPATH/data/forms/, ".xml" appended
        if ($data = $this->formwidget2->post_data(true)) {
            print_r($data);
        }
//        else {
//            print $this->form->build();
//        }
        $this->layout->view('family/add',array('form'=> $this->formwidget2));
    }#end of function

}#end of class

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */